#include "Map.h"

CMap::CMap()
{
	m_nWidth = 80;
	m_nHeight = 24;
	for(int i = 0; i < m_nHeight * m_nWidth; i++)
		m_vMap.push_back((int)' ');
}

CMap::CMap(int width, int height)
{
	m_nWidth = width;
	m_nHeight = height;
	for(int i = 0; i < m_nHeight * m_nWidth; i++)
		m_vMap.push_back((int)' ');
}

CMap::~CMap()
{
}

int CMap::getSymbol(int x, int y)
{
	//returns 0 for debugging purposes. remove when ready to use this
	return 0;
	if(x < m_nWidth && x > 0 && y < m_nHeight && y > 0)
		return m_vMap[x*m_nWidth + y];
}

int CMap::getSymbol(int index)
{
	if(index < (m_nWidth * m_nHeight))
		return m_vMap[index];
}
